// 基于template/src/widgets/\{{appEntities}}/\{{ctrls@DRTAB}}-drtab/\{{spinalCase ctrl.codeName}}-drtab-model.ts.hbs生成
import { IDrtabModel } from "@/core";

function getModel(): IDrtabModel {
    return {
        name: "{{ctrl.name}}",
        caption: "{{ctrl.editItemCaption}}",
        codeName: "{{ctrl.codeName}}",
        controlType: '{{ctrl.controlType}}',
        cssName: "{{#if ctrl.psSysCss}}{{ctrl.psSysCss.cssName}}{{/if}}",
        {{#if ctrl.editItemPSSysImage.cssClass}}
        iconClass: "{{ctrl.editItemPSSysImage.cssClass}}",
        {{/if}}
        {{#if ctrl.editItemPSSysImage.imagePath}}
        imgPath: "{{ctrl.editItemPSSysImage.imagePath}}",
        {{/if}}
        pages: [
            {{#each ctrl.psDEDRTabPages as | item |}}
            {{> @macro/widgets/drtab-detail/include-drtab.hbs type="ITEM" item=item}}
            {{/each}}
        ],
        {{!-- {{> @macro/common/counter.hbs page=ctrl}} --}}
    }
}
export const model = getModel();
